/*
* NanoTimer.java
* Copyright (C) 2005
* 
* $Id: NanoTimer.java,v 1.1 2005/07/01 14:11:00 hzi Exp $
*/
using System;
namespace Suake2.UI.sys
{
	
	
	public class NanoTimer:Timer
	{
		
		private long base_Renamed;
		
		internal NanoTimer()
		{
			base_Renamed = System_Renamed.nanoTime();
		}
		
		public override long currentTimeMillis()
		{
			long time = System_Renamed.nanoTime();
			long delta = time - base_Renamed;
			if (delta < 0)
			{
				delta += System.Int64.MaxValue + 1;
			}
			//UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
			return (long) (delta * 0.000001);
		}
	}
}